package miningMindsUtil;

import java.io.File;
import java.util.List;

import modules.*;
import parameter.*;
import functions.*;

public class Renaming {

	public static void main(String args[]){

		String path = Path.CATEGORY_MODEL_TFIDF_PATH;
		String str1 = "TFIDF";
		String str2 = "";
		
		List<File> dates = FileFunction.getListOfFiles(path);
		File f = null;
		for(File d : dates){
			if(d.getName().contains(str1)){
				f = new File( path + d.getName().replaceAll(str1, str2).trim());
				d.renameTo(f);
			}else{
			}
		}		
		System.out.println("Complete!");

	}
}